﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tabpage.aspx.cs" Inherits="Cms.Web.CmsSystem.SysModules.tabpage"
    EnableViewState="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>标签树设计</title>
    <link href="../../App_Themes/Default/CoreEdit.css" rel="stylesheet" type="text/css" />

    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../Scripts/core.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $("#tabpage").css("height", GetInnerHeight());
            $("#btnDesignForm").click(function() {
                var id = $("#HDID").val();
                var url = "/UIBuilder/UIDesign.aspx?id=" + id;
                window.open(url);
            });
        });
    </script>

</head>
<body style="margin: 0; padding: 0; overflow: auto;">
    <form id="form1" runat="server">
    <table id="tabpage" width="100%" style="border-collapse: collapse; height: 100%;">
        <tr>
            <td valign="top" style="border-collapse: collapse; border: 1px solid #ccc;">
                <asp:TreeView ID="tvTabPage" runat="server" ImageSet="XPFileExplorer" NodeIndent="15"
                    ShowLines="True" OnSelectedNodeChanged="tvTabPage_SelectedNodeChanged">
                    <ParentNodeStyle Font-Bold="False" />
                    <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                    <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                        VerticalPadding="0px" />
                    <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                        NodeSpacing="0px" VerticalPadding="2px" />
                </asp:TreeView>
            </td>
            <td valign="top" style="border-collapse: collapse; border: 1px solid #ccc;">
                <div style="height: 50px; line-height: 50px; border-bottom: 1px solid #ccc;">
                    <asp:Button ID="btnAddRoot" CssClass="button" runat="server" Text="添加根节点" OnClick="btnAddRoot_Click" />
                    <asp:Button ID="btnAddChild" CssClass="button" runat="server" Text="添加子节点" OnClick="btnAddChild_Click" />
                    <asp:Button ID="btnDelete" CssClass="button" runat="server" Text="删除" />
                    <asp:Button ID="btnSave" CssClass="button" runat="server" Text="保存" OnClick="btnSave_Click" />
                    <asp:Button ID="btnMovePre" CssClass="button" runat="server" Text="上移" />
                    <asp:Button ID="btnMoveNext" CssClass="button" runat="server" Text="下移" />
                    <asp:Button ID="btnMoveParent" CssClass="button" runat="server" Text="升级" />
                    <asp:Button ID="btnMoveChild" CssClass="button" runat="server" Text="降级" />
                    <input id="btnDesignForm" type="button"  class="button" value="设计界面" />
                </div>
                <div>
                    <div class="row">
                        <label for="txtAlias" class="label">
                            编号</label>
                        <label class="input">
                            <asp:TextBox ID="txtAlias" runat="server"></asp:TextBox>
                            <asp:HiddenField ID="HDID" runat="server" />
                            <asp:HiddenField ID="HDParentID" runat="server" />
                        </label>
                    </div>
                    <div class="row">
                        <label for="txtTitle" class="label">
                            标题</label>
                        <label class="input">
                            <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox></label>
                    </div>
                    <div class="row">
                        <label for="txtTabType" class="label">
                            标签类型</label>
                        <label class="input">
                            <asp:DropDownList ID="ddlTabType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTabType_SelectedIndexChanged">
                                <asp:ListItem Value="-1">仅节点</asp:ListItem>
                                <asp:ListItem Value="0">系统固定表单</asp:ListItem>
                                <asp:ListItem Value="1">系统自定义表单</asp:ListItem>
                                <asp:ListItem Value="2">用户自定义表单</asp:ListItem>
                                <asp:ListItem Value="3" Selected="True">WPT列表</asp:ListItem>
                            </asp:DropDownList>
                        </label>
                    </div>
                    <div class="row">
                        <label class="label">
                        </label>
                        <asp:CheckBox ID="txtIsSys" runat="server" Text="是否系统标签"></asp:CheckBox></div>
                    <asp:TextBox ID="txtLayOut" runat="server" TextMode="MultiLine" Height="300px" Width="100%"></asp:TextBox>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
